package linwen.wang.guava.eventbus;


import com.google.common.eventbus.Subscribe;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @ClassName EventListener
 * @Description eventListener
 * @Author lin
 * @Date 2021/11/5 下午11:21
 * @Version V1.0
 */
@Component
@Slf4j
public class EventListener {

    @Subscribe
    public void listener(Message message){
        log.info("接受到了消息==》{}",message);
    }
}
